<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>

<!-- type="module"表示引入ES6模块 -->
<script type="module">
    import { Vector3, Quaternion, Matrix4 } from '../js/three.module.js';

    const OC2 = new Vector3(3, 2, 1).normalize();
    const ang = 2;
    const P1 = new Vector3(1, 5, 3);

    const quaternion = new Quaternion();
    quaternion.setFromAxisAngle(OC2, ang);

    const m = new Matrix4();
    m.makeRotationFromQuaternion(quaternion);
    console.log(m);



</script>

</html>